object AnonymousFunction {
  def main(args: Array[String]): Unit = {
    //匿名函数
    def f = (i:Int) => i + 1

//    println(f(1))
    var l1 = List(100,200,300).map(_*3)
    var l2 = List(100,200,300).map(f)
    var l3 = List(100,200,300).map(x => x+1)
    println(l2)
    println(l3)

  }

}
